<?php
session_start();

// MySQL database parameters
$mysql_server   = "host";
$mysql_user     = "user";
$mysql_password = "pwd";
$mysql_db       = "dbname";
//$mysql_port   = "1234";

// Enterprise Timesheet system parameters
$company_logo = 'logo.png'; // logo appear on top left of the screen
$century = "20"; // for validation of user input date if century portion of date is omitted
$color1 = "DFDFDF"; // text color on table row
$color2 = "C0C0C0"; // text color on alternate table row
$color3 = "D0D0D0"; // background color on table header

// default startup language path
if ((! $_SESSION['UserLanguage']) || (! fopen("./language/". $_SESSION['UserLanguage'],"r"))) {
        require_once("./language/english.php");
}
else {
        require_once("./language/" . $_SESSION['UserLanguage']);
}

// initialise connection to messenger database
$link = mysql_connect($mysql_server, $mysql_user, $mysql_password);

// if connection failed, display error message and exit
if(! $link) {
        echo "Connection to MySQL server failed";
        echo "<br>" . mysql_errno() . " " . mysql_error();
        exit;
}

if (! mysql_select_db($mysql_db)) {
        echo "Connection to $mysql_db database failed";
        echo "<br>" . mysql_errno() . " " . mysql_error();
        exit;
}
?>